package com.bootdo.imook.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.imook.dao.QuesTitleNewDao;
import com.bootdo.imook.domain.QuesTitleNewDO;
import com.bootdo.imook.service.QuesTitleNewService;



@Service
@CacheConfig(cacheNames = "test")
public class QuesTitleNewServiceImpl implements QuesTitleNewService {
	@Autowired
	private QuesTitleNewDao quesTitleNewDao;

	@Cacheable
	@Override
	public QuesTitleNewDO get(Long id){
		return quesTitleNewDao.get(id);
	}
	
	@Override
	public List<QuesTitleNewDO> list(Map<String, Object> map){
		return quesTitleNewDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return quesTitleNewDao.count(map);
	}
	
	@Override
	public int save(QuesTitleNewDO quesTitleNew){
		return quesTitleNewDao.save(quesTitleNew);
	}
	
	@Override
	public int update(QuesTitleNewDO quesTitleNew){
		return quesTitleNewDao.update(quesTitleNew);
	}
	
	@Override
	public int remove(Long id){
		return quesTitleNewDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return quesTitleNewDao.batchRemove(ids);
	}
	
}
